package com.yidu.hbats.dao;

import com.yidu.hbats.model.AtsPlanYear;
import com.yidu.hbats.model.AtsPlanYearMore;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface AtsPlanYearMoreMapper {

    AtsPlanYearMore findById(Integer pid);

    /**
     * 查询所有
     * @return
     */
    List<AtsPlanYearMore> findCoach(AtsPlanYearMore atsPlanYearMore);
    List<AtsPlanYearMore> findAthlete(AtsPlanYearMore atsPlanYearMore);
    List<AtsPlanYearMore> selectAll(AtsPlanYearMore atsPlanYearMore);
    /**
     * 分页
     * @return
     */
    int countAll(AtsPlanYearMore atsPlanYearMore);
    int countCoach(AtsPlanYearMore atsPlanYearMore);
    int countAthlete(AtsPlanYearMore atsPlanYearMore);
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer pid);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insert(AtsPlanYearMore record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsPlanYearMore record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    AtsPlanYearMore selectByPrimaryKey(Integer pid);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsPlanYearMore atsPlanYearMore);
    int updateIsva(AtsPlanYearMore atsPlanYearMore);
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsPlanYearMore record);

    /**
     * 查询所有
     * @return
     */
    List<AtsPlanYearMore> selectAllandPage();

    /**
     * 查询最大的id
     * @return
     */
    AtsPlanYearMore findMaxPid(int coachId);
}